package com.cskt.beyondplatform.pojo;

/**
 * 分页展示实体类
 *
 * @author admin
 **/

public class PageVO {
    private Integer currentPageNo;
    private Integer totalCount;
    private Integer totalPageCount;
    private Integer pageSize=5;

    public Integer getCurrentPageNo() {
        return currentPageNo;
    }

    public void setCurrentPageNo(Integer currentPageNo) {
        this.currentPageNo = currentPageNo;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
        //根据总数量计算得到对应的总页数
        this.totalPageCount = totalCount % pageSize == 0 ? totalCount / pageSize : totalCount / pageSize + 1;
    }

    public Integer getTotalPageCount() {
        return totalPageCount;
    }

    public void setTotalPageCount(Integer totalPageCount) {
        this.totalPageCount = totalPageCount;
    }
}
